package com.example.smartwaterapi.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * 文件存储服务工厂 - 只使用TOS
 */
@Component
public class FileStorageFactory {

    @Autowired
    @Qualifier("tosFileStorageService")
    private FileStorageService tosFileStorageService;

    /**
     * 获取文件存储服务（直接返回TOS服务）
     */
    public FileStorageService getFileStorageService() {
        return tosFileStorageService;
    }
}